﻿using System;

namespace Accona.Remoting.Interaction
{
    internal class InteractionFactoryDefault : IInteractionFactory
    {
        internal static readonly InteractionFactoryDefault Instance = new InteractionFactoryDefault();

        private InteractionFactoryDefault()
        {
        }

        #region IInteractionFactory Members

        public TInterface CreateInstance<TInterface>(Type implementationType)
        {
            return (TInterface) Activator.CreateInstance(implementationType);
        }

        #endregion
    }
}